package com.muyu.danmo.domain;


import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 个人信息名家推荐店铺对象 danmo_information_flagship
 * 
 * @author yangle
 * @date 2024-12-17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoInformationFlagship extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会员信息商品唯一ID */
    private Long id;

    /** 会员ID */
    @Excel(name = "会员ID")
    private Long informationId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 商埔旗舰店id */
    @Excel(name = "商埔旗舰店id")
    private Long shoppingFlagshipId;

    /** 卖出数量 */
    @Excel(name = "卖出数量")
    private Long num;

    /** 旗舰店信息 */
    private List<DanmoShoppingFlagship> danmoShoppingFlagshipList;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("informationId", getInformationId())
            .append("userId", getUserId())
            .append("shoppingFlagshipId", getShoppingFlagshipId())
            .append("num", getNum())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("danmoShoppingFlagshipList", getDanmoShoppingFlagshipList())
            .toString();
    }
}
